package wsi.input.degree;

import java.util.List;

import org.rygh.semantic.gui.swing.input.Input;
import org.rygh.semantic.sparql.SparQL;

import wsi.function.DirManager;
import wsi.input.InputSelector;

public abstract class DegreeSelector extends InputSelector {

	public DegreeSelector(DirManager dir) {
		super(dir, false);
	}

	protected void computeOnline(SparQL query) {
		List<Input> inputs = select(query, false);

		for (int i = 0; i < inputs.size() && !detector.isEnough(); i++) {
			Input input = inputs.get(i);
			detect(input);
		}
	}

}
